$(document).ready(function() {
    if(document.getElementById('right_pubs_content')) {

        $('.pubs_content')
        .cycle({
            fx:     'scrollLeft',
            timeout: 5000,
            slideExpr: 'img',
            pager:  '#pager',
            next:   '#right_pubs_content',
            pause:   1

         });
    }
    
    //partenaire
    $('.patner').cycle({
        fx: 'custom',
        cssBefore: {
            top:  0,
            left: 0,
            width: 0,
            height: 0,
            display: 'block'
        },
        animIn:  {
            width: 221,
            height: 200
        },
        animOut: {
            top:  200,
            left: 221,
            width: 0,
            height: 0
        },
        cssAfter: {
            zIndex: 0
        },
        delay: -1000
    });
    //publicit�
    if(document.getElementById('pub')) {
        $('.pub').cycle({
            fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        });
    }


    if(document.getElementById('espacepub')) {
        $('.espacepub').cycle({
            fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        });


    /*    $('.bloc').cycle({
            fx: 'fade' 
        });*/
    }


$('#meteo').weatherfeed(['CMXX0003','CMXX0008','CMXX0001','CDXX0003']).ajaxStop(function() {

		$("div.scrollable").scrollable({ 
        		vertical: true,  
	        	size: 1
		}).circular().navigator().autoscroll({
			interval: 3000
		});
	});
	

});